/*
 * session.h
 *
 *  Created on: 26/06/2011
 *      Author: george
 */

#ifndef SESSION_H_
#define SESSION_H_

#include <vector>
#include "icmpsessionmanager.h"
#include "icmperrorsessionmanager.h"

#include "udpsessionmanager.h"
#include "tcpsessionmanager.h"
#include "defines.h"

class Session {
public:

	IcmpSessionManager 		icmpSession;
	IcmpErrorSessionManager icmpErrorSession;
	UdpSessionManager  		udpSession;
	TcpSessionManager  		tcpSession;

	Session();

	bool addIcmp(in_addr * src,in_addr * dst, icmp_hdr_t *icmp);
	bool addIcmpError(in_addr * src,in_addr * dst, icmp_hdr_t *icmp);
	bool addTcp(ip_hdr_t *ip, tcp_hdr_t *tcp);
	bool addUdp(ip_hdr_t *ip, udp_hdr_t *udp);
};

#endif /* SESSION_H_ */
